<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input type="text" />
		<input type="button" value="猜" onclick="guess()"/> =
		<span id="spanId"></span>
		
		<script type="text/javascript">
			function guess() {
				var spanObj = document.getElementById('spanId');
				//spanObj.innerText = '<span style="color:red">大了</span>';
				spanObj.innerHTML = '<span style="color:red">大了</span>';
			}
		</script>
	</body>
</html>
